<?php
include("include/config.inc.php");
if(!isset($_SESSION['s_activId']))
{
  $_SESSION['s_urlRedirectDir'] = $_SERVER['REQUEST_URI'];
  header("Location:checkLogin.php");
}
else
{	
  $query1 = "DELETE FROM incomingdetail
	            WHERE IncomingDetailId = ".$_REQUEST['IncomingDetailId'];
	$result1= mysql_query($query1);
	if(!$result1)
  {
	  echo "DELETING FAILED";
	}
	else
	{
	 header("Location:incomingRegister.php?".$_GET['IncomingId']);
	}
}
?>	 